<#macro remoteMsgDlg id title url>

<div class="modal " id="${id}RemoteDlg" tabindex="-1" role="dialog" aria-labelledby="${id}RemoteDlgTitle" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
       
        <h4 class="modal-title" id="${id}RemoteDlgTitle">${title}</h4>
        <div class="modal-body" id="${id}RemoteListContainer">
        	
      	</div>
      	<div class="modal-footer">
      	<button type="button" class="btn btn-default" onclick="$('#${id}RemoteDlg').modal('hide');">关闭</button>        
      </div>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript">
var _${id}={
	showRemoteMsgDlg:function(paramString)
	{
		$.get('${url}&pageSize=5&'+paramString,{},this.afterLoadData,'html');
		$('#${id}RemoteDlg').modal('show');		
	},
	afterLoadData:function(data)
	{
		$('#${id}RemoteListContainer').empty();
		$('#${id}RemoteListContainer').append(data);
		//$('#${id}RemoteDlg').on('hidden.bs.modal', function (e) {
		//	$('#${id}RemoteListContainer').empty();
		//});	
	},
	toPage:function(params)
	{
		$.get('${url}',params,this.afterLoadData,'html'); 	  	
	}
}
</script>
</#macro>